<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<form:form id="searchForm" modelAttribute="goods" action="${ctx}/sys/goodsCombo/searchGoods" method="post" class="breadcrumb form-search">
	<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
	<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
	<ul class="ul-form">
		<li>
			<form:select id="firstClass" path="classessOnceId" class="input-medium" onchange="getTwiceClass()">
				<form:option value="" label="一级类目"/>
				<form:options items="${firstClass}" htmlEscape="false" itemValue="id" itemLabel="name"/>
			</form:select>
		</li>
		<li>
			<form:select id="twiceClass" path="classessTwiceId" class="input-medium" onchange="getThirdClass()">
				<form:option value="" label="二级类目"/>
			</form:select>
		</li>
		<li>
			<form:select id="thirdClass" path="classessThirdId" class="input-medium">
				<form:option value="" label="三级类目"/>
			</form:select>
		</li>
		<li>
			<form:input path="cnName" htmlEscape="false" class="input-medium" placeholder="商品名称"/>
			<form:input path="code" htmlEscape="false" class="input-medium" placeholder="配件编号"/>
		</li>
		<li class="btns"><input class="btn btn-primary" type="button" value="搜索" onclick="searchGoods()"/></li>
		<li class="btns"><input class="btn btn-primary" type="button" value="确认" onclick="confirmCheckGoods()"/></li>
		<li class="btns"><input class="btn btn-primary" type="button" value="返回" onclick="closeSearchGoods()"/></li>
	</ul>
</form:form>
<table id="contentTable" class="table table-striped table-bordered table-condensed">
	<thead>
		<tr>
			<th class="check">
				<input type="checkbox" id="checkAll"/></th>
			<th>序号</th>
			<th>商品名称</th>
			<th>配件编号</th>
			<th>售价</th>
			<th>会员价</th>
		</tr>
	</thead>
	<tbody id="contentTableTbody">
	<c:forEach items="${page.list}" var="goods" varStatus="index">
		<tr>
			<td class="check">
				<input type="checkbox" name="fdId" value="${goods.id}"/></td>
			<td>${index.index+1 }</td>
			<td>${goods.cnName}</td>
			<td>${goods.partsCode}</td>
			<td>¥ ${goods.price}</td>
			<td>¥ ${goods.memberPrice}</td>
		</tr>
	</c:forEach>
	</tbody>
</table>
<div class="pagination">${page}</div>